<div id="xce_editor" style="height: 100%;"></div>
<!-- JS脚本区 -->
<script>
    layui.use(['xce'], function () {
        let xce = layui.xce;
        xce.render({
            elem: "#xce_editor",
            api: "/generator/template/xceApi?templateId=#(detail.template_id)",
            readOnly: #(detail.official_id != null ? 'true' : 'false'),
        })
    })
</script>